import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Product   from "../components/Product.vue";
import Login from '../components/Login.vue';
import Register from "../components/register.vue";
import ForgetPassword from "../components/FogetPasw.vue";
import UserDetail from '../components/UserDetail.vue';
import ProductDetail from '../components/ProductDetail.vue';
import Filter from "../components/Filter.vue";


import productView from "../components/ProductView.vue";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },

    {
      path: '/product',
      name: 'Product',
      component: Product
    },
    {
      path:'/productView',
      component:productView
    },
    {
      path:'/Login',
      component:Login
    },
    {
      path:'/Register',
      component:Register
    },
    {
      path:'/FogetPasw',
      component:ForgetPassword
    },
    {
      path: '/userDetail',
      name: 'UserDetail',
      component: UserDetail,
    },
    {
      path: '/product/:id',
      name: 'ProductDetail',
      component: ProductDetail
    },
    {
      path: '/Filter',
      name: 'Filter',
      component: Filter
    },


  ]
})
